Skip to content

Fix #12403 FP mallocOnClassWarning for RAII class#5930

Merged
chrchr-github merged 1 commit into
cppcheck-opensource:mainfrom
chrchr-github:chr_Fix12403
Jan 31, 2024
Merged

Fix #12403 FP mallocOnClassWarning for RAII class#5930
chrchr-github merged 1 commit into
cppcheck-opensource:mainfrom
chrchr-github:chr_Fix12403

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

it's not an ideal solution of course.. ideally we would check what the typeScope would do with the variable.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

Well, given that open() doesn't even allocate memory, the warning was just totally off...

@chrchr-github chrchr-github merged commit 5c59d86 into cppcheck-opensource:main Jan 31, 2024
@chrchr-github chrchr-github deleted the chr_Fix12403 branch January 31, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants